#include <iostream>

using std::cout;
using std::endl;

class Point
{
public:
    Point(int ix = 0, int iy = 0)
    : _ix(ix)//初始化列表才是真正初始化的位置
    , _iy(iy)
    {
        cout << "Point(int = 0, int = 0)" << endl;
        /* _ix = 0;//error, 赋值 */
        /* _iy = 0;//error, 赋值 */
    }

    void print(/* Point  * const this */)
    {
        cout << "(" << this->_ix 
             << ", " << this->_iy
             << ")" << endl;
    }

    ~Point()
    {
        cout << "~Point()" << endl;
    }

private:
    const int _ix;
    const int _iy;
};

void test()
{
}

int main(int argc, char **argv)
{
    test();
    return 0;
}

